package test2;

public class Student implements Comparable<Student>{
    String name;
    int score;


    Student(String name,int score){
        this.name = name;
        this.score = score;

    }
    public String  getName (){
        return name;
    }
    @Override
    public int compareTo(Student o){
        return  this.score > o.score ? 1: -1;
    }
}
